﻿using HYRN.Common.ConvertUtilities;
using Oliving.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMSClient.Config
{
    public static class EmsConfigHelper
    {

        public static string SoftName
        {
            get
            {
                return AppConfigHelperB.getSetting("softName");
            }
            set
            {
                AppConfigHelperB.updateSeeting("softName", value);
            }
        }


        public static string IP
        {
            get
            {
                return AppConfigHelperB.getSetting("TCPIP_IP");
            }
            set
            {
                AppConfigHelperB.updateSeeting("TCPIP_IP", value);
            }
        }

        public static int Port
        {
            get
            {
                return AppConfigHelperB.getSetting("TCPIP_Port").ObjToInt();
            }
            set
            {
                AppConfigHelperB.updateSeeting("TCPIP_Port", value.ObjToString());
            }
        }
        public static string LoginPwd
        {
            get
            {
                return AppConfigHelperB.getSetting("LoginPwd");
            }
            set
            {
                AppConfigHelperB.updateSeeting("LoginPwd", value.ObjToString());
            }
        }
        public static string LoginName
        {
            get
            {
                return AppConfigHelperB.getSetting("LoginName");
            }
            set
            {
                AppConfigHelperB.updateSeeting("LoginName", value.ObjToString());
            }
        }




        public static string Regist
        {
            get
            {
                return AppConfigHelperB.getSetting("Regist");
            }
            set
            {
                AppConfigHelperB.updateSeeting("Regist", value.ObjToString());
            }
        }


    }
}
